import 'package:flutter/material.dart';

class SubmitPage extends StatefulWidget {
  final arguments;
  SubmitPage({this.arguments});

  @override
  _SubmitPageState createState() => _SubmitPageState();
}

class _SubmitPageState extends State<SubmitPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("页面传值"),
      ),
      body: Column(
        children: [
          Text("名字:" +
              '${widget.arguments != null ? widget.arguments['name'] : '苹果十二'}'),
          Text("价格:" +
              '${widget.arguments != null ? widget.arguments['pice'] : '4000'}'),
        ],
      ),
    );
  }
}
